/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import { Request, Response } from 'express';
import { ResponseItem, responseSuccess } from './utils';
import Mock from 'mockjs';

export default {
  'POST /Covid19/importOperateRecord': (req: Request, res: Response, u: string) => {
    const list = Array.from({ length: 20 }).map((_, index) => {
      return Mock.mock({
        'id|+1': index,
        name: '@cname()',
        operate_time: '@date()',
      });
    });

    const result: ResponseItem = {
      code: 0,
      msg: '成功',
      data: list,
    };
    return res.json(result);
  },
  'POST /Covid19/importCovid19Data': (req: Request, res: Response) => responseSuccess(req, res),
};
